package com.cloudweb.oa.service;

import com.redmoon.oa.LogDb;
import com.redmoon.oa.LogUtil;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogService {

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public boolean log(String userName, String ip, int type, String action) {
        return LogUtil.log(userName, ip, type, action, LogDb.DEVICE_PC, "");
    }
}
